package com.example.comment.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author kuang
 * @Date 2021/7/11 17:24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result<T> {
    private Integer code;
    private String message;
    private T data;

    /**
     * 无参数
     *
     * @param code    代码
     * @param message 信息
     */
    public Result(Integer code, String message) {
        this(code, message, null);
    }

}
